from django.db import models


class CreateTimeFiled(models.Model):
    create_time = models.DateTimeField(verbose_name="创建时间", auto_now_add=True)

    class Meta:
        abstract = True


class UpdateTimeFiled(models.Model):
    update_time = models.DateTimeField(verbose_name="更新时间", auto_now=True)

    class Meta:
        abstract = True


class CreateAndUpdateTimeFiled(CreateTimeFiled, UpdateTimeFiled):
    class Meta:
        abstract = True
